Automattic\Jetpack\Protect\REST_Controller S

Total Complexity 28
Dependencies 11
Dependents 1
Total lines 407
Lines of code 264
Logical lines of code 93
Comment lines 91
Methods 16
Properties 0

Methods 16

Method Rating Maintainability Complexity Lines of code
register_rest_endpoints()
A
34 1 156
api_toggle_waf()
S
55 4 22
api_ignore_threat()
S
63 3 10
api_fix_threats()
S
63 3 10
api_fix_threats_status()
S
63 3 10
api_clear_scan_cache()
S
68 2 7
api_check_credentials()
S
68 2 7
api_scan()
S
68 2 7
api_get_waf()
S
63 1 11
init()
S
75 1 4
api_check_plan()
S
75 1 4
api_get_status()
S
74 1 4
api_get_waf_seen_status()
S
80 1 3
api_set_waf_seen_status()
S
80 1 3
api_get_waf_upgrade_seen_status()
S
80 1 3
api_set_waf_upgrade_seen_status()
S
80 1 3